package com.jphoebe.plugin.mybatis.bean.setting;

import com.intellij.util.xmlb.annotations.Transient;
import com.jphoebe.plugin.mybatis.utils.Il8nUtil;
import com.jphoebe.plugin.mybatis.utils.PropertiesUtil;
import com.jphoebe.plugin.mybatis.utils.jetbrain.IconsUtil;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.jdom.Element;

import java.io.Serializable;

/**
 * GlobalSetting class
 *
 * @author 蒋时华
 * @date 2019/2/19
 */

@Getter
@Setter
public class GlobalSetting implements Serializable {

    /*** 跳转导航是否开启 */
    @Transient
    private Boolean naviJumpStatus;
    /*** 语言设置 */
    private Integer language;
    /*** 默认导航栏图标 */
    private Integer naviJumpIcon;

    public GlobalSetting() {
        this.naviJumpStatus = PropertiesUtil.getPluginProps().getBool("prop.naviJumpStatus.defaultSelected");
        this.language = PropertiesUtil.getPluginProps().getInt("prop.language.default");
        this.naviJumpIcon = PropertiesUtil.getPluginProps().getInt("prop.naviJumpStatus.defaultIcon");
    }

}
